package com.ligang.flowable.mulitiInstance;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * ClassName:注解
 * Package:com.ligang.flowable.mulitiInstance
 * Description:
 *
 * @Date:2022/5/1 8:27
 * @Author:gang.li
 **/
@Slf4j
@Component("mulitiInstanceTaskListener")
public class MulitiInstanceTaskListener implements Serializable {

    public void completeListener(DelegateExecution execution){
        log.info("++++++ 监听器开始 +++++++++");
        log.info("会签任务的ID为：{}",execution.getId());
        log.info("persons为：{}",execution.getVariable("persons"));
        log.info("person：{}",execution.getVariable("person"));
        log.info("++++++ 监听器结束 +++++++++");
    }
}
